package application
{
	import application.controller.StartupCommand;
		
	import org.puremvc.interfaces.IFacade;
	import org.puremvc.patterns.facade.Facade;
	
	public class ApplicationFacade extends Facade implements IFacade
	{
		// Notification name constants.
		public static const STARUP:String = "startup";
		
		/**
		 * Singleton ApplicationFacade Factory Method.
		 */
		public static function getInstance():ApplicationFacade
		{
			if ( instance == null ) instance = new ApplicationFacade();
			return instance as ApplicationFacade;
		}
		
		/**
		 * Register Commands with the Controller.
		 */
		override protected function initializeController():void
		{
			super.initializeController();
			
			registerCommand ( ApplicationFacade.STARUP, StartupCommand ); 
		}
	}
}